<?php
/* @var $this InstrumentController */
/* @var $model Instrument */

$this->breadcrumbs=array(
	'大型仪器管理',
);

$this->menu=array(
	array('label'=>'返回后台主页', 'url'=>array('default/index')),
	array('label'=>'创建大型仪器类', 'url'=>array('create')),
);
?>

<h1>大型仪器管理</h1>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'instrument-grid',
	'dataProvider'=>$model->search(),
    'filter'=>$model,
    'columns'=>array(
        array(
            'name'=>'title',
            'type'=>'raw',
            'value'=>'CHtml::link($data->title,array("view","id"=>$data->instrument_id))',
        ),
		'model',
        'contacts',
        'price',
        'stock',
        'total_stock',
        array(
            'name'=>'status',
            'value'=>'$data->getEnabledLable()',
        ),
			/*
		'manufacturer',
        'place',
        'subordinate_units',
		'specification',
		'brand',
		'production_date',
		'purchase_date',
		'origin',
		'email',
		'description',
		'resources_id',
		*/
		array(
			'class'=>'CButtonColumn',
            'header'=>'操作',
		),
	),
)); ?>
